#include "duoji.h"
#include "zf_pwm.h"
void shift(unsigned d)
{
    switch(d)
    {
    case 0:
        pwm_duty(PWM2_CH1_A0, 250);
        break;
    case 90:
        pwm_duty(PWM2_CH1_A0, 790);
        break;
    case 180:
        pwm_duty(PWM2_CH1_A0, 1250);
        break;
    default:
        break;
    }
}
